package com.xxx.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxx.seckill.pojo.TUser;
import com.xxx.seckill.vo.LoginVo;
import com.xxx.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XXX
 * @since 2023-01-04
 */
public interface TUserService extends IService<TUser> {

    /**
     * 更新密码
     */
    RespBean updatePassword(String userTicket, String password,HttpServletRequest request, HttpServletResponse response);



    /**
     * 根据cookie获取用户
     */
    TUser getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);

    /**
     * 登录功能
     * @param loginVo
     * @param request
     * @param response
     * @return
     */
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);
}
